🎖️GitЯра🎖️
Commit 27e9990e3ce6369d6ae19f4eb6539d03596f270b
Parents : a997adc
Author : James Rich <2199651+jamesarich@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-06-17T05:55:18-05:00
Committer : GitHub <noreply@github.com>
Date : 2026-06-17T05:55:18-05:00
fix(ci): stop scheduled-updates choking on failed baseline profile (#5825)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Changes
Diff
diff --git a/.github/workflows/scheduled-updates.yml b/.github/workflows/scheduled-updates.yml
index 7588cf886c..0e343e0747 100644
--- a/.github/workflows/scheduled-updates.yml
+++ b/.github/workflows/scheduled-updates.yml
@@ -133,7 +133,10 @@ jobs:
disable-animations: true
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# Writes androidApp/src/google/generated/baselineProfiles/ via the androidx.baselineprofile plugin.
- script: ./gradlew :androidApp:generateGoogleReleaseBaselineProfile -Pci=true
+ # --no-configuration-cache: the underlying connectedGoogleNonMinifiedReleaseAndroidTest task is not
+ # config-cache serializable (SeparateTestModuleTestData / ResolutionBackedFileCollection), and the
+ # project enables org.gradle.configuration-cache by default — same workaround used in reusable-check.yml.
+ script: ./gradlew :androidApp:generateGoogleReleaseBaselineProfile -Pci=true --no-configuration-cache
- name: Detect baseline profile changes
id: baseline
@@ -221,10 +224,14 @@ jobs:
branch: 'scheduled-updates'
base: 'main'
delete-branch: true
+ # Only stage the baseline-profile dir when generation actually produced changes. When the emulator
+ # boots far enough for Gradle to create an *empty* baselineProfiles/ dir but generation then fails,
+ # `git add <glob>` aborts with "pathspec did not match any files", which would hard-fail this step
+ # and defeat the continue-on-error on the generation step above.
add-paths: |
androidApp/src/main/assets/firmware_releases.json
androidApp/src/main/assets/device_hardware.json
- androidApp/src/google/generated/baselineProfiles/**
+ ${{ steps.baseline.outputs.status == 'updated' && 'androidApp/src/google/generated/baselineProfiles/**' || '' }}
fastlane/metadata/android/**
**/strings.xml
**/README.md
Served by rngit 1.5.0 - Generated in 0.05s